import glumpy
from gl_shapes import *

fig = glumpy.figure( (800,800) )
smooth()

def on_draw():
    fig.clear()
    count = 30
    will = 30
    for i in range(count):
        x = i * will
        y = 200
        c = i/80.0
        color = c,c,c,1.0
        ellipse(c=(x,y), w=10, h=i*10.0, a=0.0, color=color, step=20, stroke=1.0)


        rectangle((x,y), 30, 30, i*4,color)
        rectangle((x,400.0), 30, 30, i*4,color)


fig.window.push_handlers(on_draw)
glumpy.show()